<table class="common-table">
	<thead>
		<tr>
			<th><input id="selectAll" type="checkbox"></th>
			<th>ID</th>
			<th>订单号</th>
			<th>应付金额</th>
			<th>实付金额</th>
			<th>支付者</th>
			<th>支付方式</th>
			<th>银行</th>
			<th>确认状态</th>
			<th>操作</th>
			<th>提交时间</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
		#{if remittanceConfirms}
			#{list items:remittanceConfirms, as:'remittanceConfirm'}
			<tr>
				<th><input class="cbItem" type="checkbox" value="${remittanceConfirm.id}"></th>
				<td>
					<a href="/admin/order/remittanceConfirm/${remittanceConfirm.id}">
					${remittanceConfirm.id}
					</a>
				</td>
				<td>
					<a href="/admin/order/remittanceConfirm/${remittanceConfirm.id}">
					${remittanceConfirm.order.id}
					</a>
				</td>
				<td>${remittanceConfirm.order.totalPrice}</td>
				<td>${remittanceConfirm.price}</td>
				<td>${remittanceConfirm.paierName}</td>
				<td>
					#{if remittanceConfirm.payType=="online"}在线支付#{/if}
					#{if remittanceConfirm.payType=="bankTransfer"}银行转账#{/if}
				</td>
				<td>${remittanceConfirm.bankName}</td>
				<td>
					#{if remittanceConfirm.confirmStatus == models.RemittanceConfirm.ConfirmStatus.NEW}
						<font class="important">请求确认中</font>
					#{/if}
					#{if remittanceConfirm.confirmStatus == models.RemittanceConfirm.ConfirmStatus.PASS}
						<font class="important_2">确认成功</font>
					#{/if}
					#{if remittanceConfirm.confirmStatus == models.RemittanceConfirm.ConfirmStatus.FAIL}
						<font class="">确认失败</font>
					#{/if}
				</td>
				<td>
					<a href="/admin/order/remittanceConfirm/${remittanceConfirm.id}" class="editer">
					[详细]
					</a>
				</td>
				<td>
					#{if remittanceConfirm.createAt}
						${remittanceConfirm.createAt.format("yyyy-MM-dd hh:mm")}
					#{/if}
				</td>
				<td>
					<a href="javascript:deleteItem(${remittanceConfirm.id})" methods="DELETE" title="删除">
						<img class="minImg" src="@{'public/images/delete.gif'}">
					</a>
				</td>
			</tr>
			#{/list}
		#{/if}
		#{else}
		<tr>
			<td colspan="12">没找到结果。</td>
		</tr>
		#{/else}
	</tbody>
</table>
<div id="pager" style="font-size:1.3em;"></div>
<script language="javascript">
//初始化翻页控件。
function initialPager() {
	$("#pager").pager(
		{
			pagenumber: ${queryBean.currentPage}, 
			pagecount: ${queryBean.totalPage}, 
			totalcount: ${queryBean.totalQuantity},
			buttonClickCallback: PageClick
		}
	);
}
//翻页功能。
function PageClick(pageclickednumber) {
	$("#currentPage").val(pageclickednumber);
	reloadTable();
}
</script>